<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<table class="table table-hover table-bordered">
    <thead>
    <tr>
        <th class="text-center" width="10%">ID</th>
        <th class="text-center" width="20%">总做题次数</th>
        <th class="text-center" width="20%">总错题次数</th>
        <th class="text-center" width="20%">正确率</th>
        <th class="text-center" width="20%">做题进度</th>
        <th class="text-center" width="30%">总试题数</th>
    </tr>
    </thead>
    <tbody>
    <tr th:if="${#lists.isEmpty(dataMap)}">
        <td colspan="9">
            <div class="noDataTipsBox">
                <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
            </div>
        </td>
    </tr>
    <tr th:if="!${#lists.isEmpty(dataMap)}">
        <td class="text-center" th:text="${dataMap['id']}"></td>
        <td class="text-center" th:text="${dataMap['totalCount']}"></td>
        <td class="text-center" th:text="${dataMap['errorCount']}"></td>
        <td class="text-center">
            <span th:if="${dataMap['totalCount'] == 0}" >0%</span>
            <span th:if="${dataMap['totalCount'] != 0}" th:text="${#numbers.formatDecimal(100 - ((dataMap['errorCount']*100.0/dataMap['totalCount']*100.0)/100),1,2)} + '%'"></span>
        </td>
        <td class="text-center" th:text="${dataMap['totalSumPrecision'] + '%'}"></td>
        <td class="text-center" th:text="${dataMap['totalSumCount']}"></td>
    </tr>
    </tbody>
</table>
